package org.spark.sql.scala.imooc

import org.apache.spark.sql.SparkSession
import org.spark.utils.FilePath

/**
  * 功能概述:SparkSession的使用
  * Datetime:    2020/6/5   11:35
  * Author:   某人的目光
  */
object SparkSessionApp {

  def main(args: Array[String]): Unit = {

    val sparkSession = SparkSession.builder().appName("SparkSession").master("local").getOrCreate();
    val people = sparkSession.read.format("json").load(FilePath.STUDENT_PATH);


    people.show()


    sparkSession.stop()
  }

}
